<!DOCTYPE html>
<html lang="zh-cn" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <title>登录</title>
  <link href="/static/common/bootstrap.css" rel="stylesheet"/>
  <link href="static/login/login.css" rel="stylesheet"/>
</head>
<body>
<div class="container">
  <form class="form-signin" method="post" action="/login">
    <h2>MoLiHua</h2>
    <div th:if="${errorMessage} != null" class="alert alert-danger" role="alert">用户名或密码错误</div>
    <p>
      <label for="username" class="sr-only">Username</label>
      <input type="text" id="username" name="username" class="form-control"
             placeholder="用户名" required autofocus>
    </p>
    <p>
      <label for="password" class="sr-only">Password</label>
      <input type="password" id="password" name="password" class="form-control"
             placeholder="密码" required>
    </p>
    <button class="btn btn-lg btn-primary btn-block" type="submit">登录</button>
  </form>
</div>
</body>
</html>